package xdpm.nhom16.helper;

import java.util.Comparator;

import xdpm.nhom16.DTO.DuLieuSearchDTO;


public class GiaThapComparator implements Comparator<DuLieuSearchDTO>{
	public int compare(DuLieuSearchDTO dtFirst, DuLieuSearchDTO dtSecond)	{
		double dFirst = dtFirst.getGiaThapNhat();
		double dSecond = dtSecond.getGiaThapNhat(); 
		if (dFirst > dSecond)	{
			return 1;
		}
		else if (dFirst == dSecond)	{
			return 0;
		}
		else	{
			return -1;
		}
	}
}
